package com.wwt.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wwt.server.pojo.Employee;
import com.wwt.server.vo.Result;
import com.wwt.server.vo.ResultPage;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Tao
 * @since 2021-12-05
 */
public interface IEmployeeService extends IService<Employee> {

    /**
     * 条件获取所有员工
     * @param currentPage
     * @param size
     * @param employee
     * @param dates
     * @return
     */
    ResultPage getAllEmp(Integer currentPage, Integer size, Employee employee, LocalDate[] dates);

    /**
     * 获取最大工号
     * @return
     */
    Result getMaxId();

    /**
     * 添加员工
     * @param employee
     * @return
     */

    Result insertEmp(Employee employee);

    /**
     * 更新员工信息
     * @param employee
     * @return
     */
    Result updateEmp(Employee employee);

    List<Employee> getExportEmp(Integer id);
}
